package com.zy.edu.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author HuangHaiShui
 * @since 2021-09-03
 */
@Data
@TableName("homework_class")
public class HomeworkClass implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private String id;
    @TableField("class_id")
    private String classId;
    @TableField("hk_id")
    private String hkId;
    @TableField("create_time")
    @JSONField(format="yyyy-MM-dd hh:mm:ss")
    private Date createTime;

}
